package com.tich.api.client;

import com.tich.api.domain.entity.Area;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("common-service")
public interface CommonClient {

    @GetMapping("/area")
    public Area getAreaNameById(@RequestParam("id") Long id);
}
